package com.thb.pay.api.merchant.fallback;

import com.thb.pay.api.merchant.MchBillServiceApi;
import com.thb.pay.api.merchant.vo.req.MchBillPageReq;
import com.thb.pay.api.merchant.vo.req.MchBillReq;
import com.thb.pay.api.merchant.vo.resp.MchBillVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class MchBillServiceApiFallbackFactory implements FallbackFactory<MchBillServiceApi> {


    @Override
    public MchBillServiceApi create(Throwable throwable) {
        return new MchBillServiceApi() {
            @Override
            public PageResult<MchBillVo> findPage(MchBillPageReq pageReq) {
                return null;
            }

            @Override
            public MchBillVo getById(Long id) {
                return null;
            }

            @Override
            public void add(MchBillReq mchBillReq) {

            }

            @Override
            public void update(MchBillReq mchBillReq) {

            }
        };
    }
}